<?php 
  require_once('Admin/Common/template/inc_admin.php');
 ?>
    
     <div id="content">
   <div class="inner" style="min-height:1200px;">
     

<div align=center>
			<h1 style="text-align:center">
				搜索结果如下</h1>	
	 <div class="container-fluid control-label  col-md-12 ">
	 <table class="table table-hover">
	 <tr class="info">
		 <th>用户编号</th>
  		 <th>用户名</th>
   		 <th>性别</th>
  		 <th>生日</th>
  		 <th>爱好</th>
  		 <th>学历</th>
  		 <th>自我介绍</th>
  		 <th width="80">头像</th>
	 </tr>
	 <?php
  foreach ($data['users'] as $row) {
	 echo '<tr>';
	 echo '<td>'.$row['uid'].'</td>';
	 echo '<td>'.$row['uname'].'</td>';	 
	 echo '<td>'.($row['gender']==0?'男':'女').'</td>';
	 echo '<td>'.$row['birthdate'].'</td>';
	 echo '<td>'.$row['hobby'].'</td>';
	 switch($row['degree']){
	   case '1':$dg = "高中";break;
	   case '2':$dg = "大学";break;
	   case '3':$dg = "研究生";break;
	   case '4':$dg = "博士生";break;
	   default: $dg="不知道";
     }
	 echo '<td>'.$dg.'</td>';
	 echo '<td>'.$row['intro'].'</td>';	 	 
	 echo '<td align="center"><img src="./upload/'.$row['pic'].'" width=60 height=80 alt="无头像"></td>';	
	 echo '</tr>';  
  }
  echo '</table>';  
  $totalrows = count($data['users']);
  echo '<h2 style="font-family:微软雅黑;text-align:right;color:red;position:relative;right:50px">共有'.$totalrows.'名用户</h2>'; 
 ?>
	</div>
	<nav class="navbar navbar-fixed-bottom">
    <a href="#" "><img align="right"  src="./assets/images/gotop.jpg" alt="回顶部" width="50" height="50"></a>
</nav>
  </div>
    </div>      
</div>
  </body>
</html>